package web

import (
	"github.com/gin-gonic/gin"
	"tyjt-ferry/internal/config"
	"tyjt-ferry/internal/middleware"
)

func InitRouter() *gin.Engine {
	r := gin.New()
	if config.ApplicationConfig.IsHttps {
		r.Use()
	}
	middleware.InitMiddleware(r)

	// todo jwt middleware

	// todo 注册系统路由

	return r
}
